<?php

/**
 * @file block.inc
 * Defines all the custom blocks' information.
 */

/**
 * A listing of blocks and their Administrative info title.
 *
 * @return array $blocks
 *   An array of block definitions.
 */
function addon_blocks_block_get_info() {

  $pages = array(
    'illustrations',
    'gems_&_metalwork',
    'textiles',
    'cinema_&_music',
    'architecture',
    'history',
    'poetry',
    'maps',
    'resources',
    'frontpage',
    'default',
  );
  $sections = array(
    'top wide',
    'top left',
    'top right',
    'middle wide',
    'middle left',
    'middle right',
    'bottom left',
    'bottom right',
    'bottom wide',
  );

  foreach($pages as $page) {
    foreach($sections as $section) {
      $blocks[$page . '_' . str_replace(' ', '_', $section)] = array(
        'info' => t($page . ': content ' . $section),
      );
    }
  }

  return $blocks;
}
